<?php

namespace Apps\Common\Enum;


class Position extends Enum
{
	/**
	 * 通栏一
	 */
	const PositionOne = 1;
	/**
	 * 通栏二
	 */
	const PositionTwo = 2;
	/**
	 * 通栏三
	 */
	const PositionThr = 3;
	/**
	 * 通栏四
	 */
	const PositioFou = 4;
	/**
	 * 底部左边广告
	 */
	const PositionFiv = 5;
	/**
	 * 底部右上广告
	 */
	const PositionSix = 6;
	/**
	 * 底部右下广告
	 */
	const PositionSev = 7;

	public static function valuesExplain()
	{
		return [
				'1' => '通栏一',
				'2' => '通栏二',
				'3' => '通栏三',
				'4' => '通栏四',
				'5' => '底部左边广告',
				'6' => '底部右上广告',
				'7' => '底部右下广告'
		];
	}

	public static function valueToStr($v)
	{
		$data = self::valuesExplain();
		if(isset($data[strval($v)])) {
			return $data[strval($v)];
		}
		return '';
	}
}